<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Equipment_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_id" data-rule="required" data-source="equipment/index" class="form-control selectpage" name="row[equipment_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" class="form-control" name="row[url]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Requesttype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-requesttype" class="form-control" name="row[requesttype]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Returntype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-returntype" class="form-control" name="row[returntype]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Describe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-describe" class="form-control" name="row[describe]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Headerjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-name="row[headerjson]">
                <dd>
                    <ins>{:__('Key')}</ins>
                    <ins>{:__('Value')}</ins>
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[headerjson]" class="form-control hide" cols="30" rows="5"></textarea>
            </dl>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paramjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <table class="table fieldlist" data-template="paramjsontpl" data-name="row[paramjson]" id="second-table">
                <tr>
                    <td>名称</td>
                    <td>必填</td>
                    <td>类型</td>
                    <td>说明</td>
                </tr>
                <tr>
                    <td colspan="4"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[paramjson]" class="form-control hide" cols="30" rows="5"></textarea>
            <script id="paramjsontpl" type="text/html">
                <tr class="form-inline">
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="5">
                    </td>
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][ismask]" class="form-control" value="<%=row['ismask']%>" size="5"> 
                    </td>
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][typemsg]" class="form-control" value="<%=row['typemsg']%>" size="5"> 
                    </td>
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][note]" class="form-control" value="<%=row['note']%>" size="5"> 
                    </td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>


        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Responsejson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <table class="table fieldlist" data-template="responsejsontpl" data-name="row[responsejson]" id="second-table">
                <tr>
                    <td>名称</td>
                    <td>类型</td>
                    <td>说明</td>
                </tr>
                <tr>
                    <td colspan="4"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
                </tr>
            </table>

            <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
            <textarea name="row[responsejson]" class="form-control hide" cols="30" rows="5"></textarea>
            <script id="responsejsontpl" type="text/html">
                <tr class="form-inline">
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="5">
                    </td>
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][typemsg]" class="form-control" value="<%=row['typemsg']%>" size="5"> 
                    </td>
                    <td>
                        <input type="text" name="row[<%=name%>][<%=index%>][note]" class="form-control" value="<%=row['note']%>" size="5"> 
                    </td>
                    <td>
                        <!--下面的两个按钮务必保留-->
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>


        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-note" class="form-control " rows="5" name="row[note]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
